<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/8/4 16:24
 */

namespace App\Transformers;

use App\User;
use League\Fractal\TransformerAbstract;

class DoctorsTransformer extends TransformerAbstract
{
    public function transform(User $user)
    {
        return $user->toArray();
    }
}